package com.hotel.service.Impl;

import com.hotel.entity.Comment;
import com.hotel.mapper.CommentMapper;
import com.hotel.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.dc.pr.PRError;

import java.util.List;

/**
 * @author 夏智力
 * @FileName CommentServiceImpl
 * @date 2021/6/22 10:45
 * @Software: IntelliJ IDEA
 */
@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<Comment> selectComments() {
        return commentMapper.selectComments();
    }

    @Override
    public int addComment(Comment comment) {
        return commentMapper.addComment(comment);
    }
}
